package com.chen.gulimall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chen.gulimall.member.exception.PhoneException;
import com.chen.gulimall.member.exception.UsernameException;
import com.chen.gulimall.member.vo.MemberUserLoginVo;
import com.chen.gulimall.member.vo.MemberUserRegisterVo;
import com.chen.gulimallcommon.common.utils.PageUtils;
import com.chen.gulimall.member.entity.MemberEntity;

import java.util.Map;

/**
 * 会员
 *
 * @author mr.chen
 * @email 3061634906@qq.com
 * @date 2022-04-19 18:22:22
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveResigerMember(MemberUserRegisterVo vo);

    void isUniqueUserName(String userName) throws UsernameException;

    void isUniquePhone(String phone) throws PhoneException;

    MemberEntity login(MemberUserLoginVo memberUserLoginVo);

}

